#ifndef CONSTRAINTSWINDOW_H_
#define CONSTRAINTSWINDOW_H_

#include <gtkmm/dialog.h>
#include <gtkmm/spinbutton.h>
#include <gtkmm/button.h>
#include <libglademm.h>

/// The constraints dialog.  This window displays the constraints set, and
/// provides means for manipulating the constraints.
class ConstraintsWindow : public Gtk::Dialog {
public:
	ConstraintsWindow(BaseObjectType*, const Glib::RefPtr<Gnome::Glade::Xml>&);
	virtual ~ConstraintsWindow();

	int number_of_courses() const;
	
protected:
	//Signal handlers:
	virtual void on_cancel();
	virtual void on_ok();
	virtual bool on_delete_event(GdkEventAny*);

private:
	//Member widgets:
	Gtk::SpinButton* number_of_courses_spinbutton_;
	Gtk::Button* cancel_button_;
	Gtk::Button* ok_button_;
};

#endif
